//index.js
//获取应用实例
var app = getApp();
var appData = app.globalData;
Page({
    data: {
        qrcode: '', 
        data: {
            name: '',
            percent: '',
            photo:''
        }
    },
    onLoad: function (options) {
        let _this = this
        let user_id = options.user_id
        let group_id = options.group_id
        _this.setData({
            user_id: user_id,
            group_id: group_id
        })
        wx.request({
            url: appData.apiUrl + 'user/groupinfo',
            data: {
                user_id: user_id,
                group_id: group_id
            },
            success: function (res) {
                console.log('获取圈子信息')
                console.log(res)
                if (res.data.status == true) {
                    _this.setData({
                        data: res.data.data
                    })
                }
            }
        })
    }
})
